import 'package:geolocator/geolocator.dart';
import 'package:get/get.dart';
import 'package:share_fit/app/controllers/home/weather/model/hourly_weather_model.dart';
import 'package:share_fit/app/models/home/city_model.dart';
import 'package:share_fit/app/controllers/home/weather/model/daily_weather_model.dart';

class WeatherState {
  late Position position;

  Rx<CityModel> city = CityModel('C9056', name: 'Las Vegas').obs;
  List<DailyWeatherModel> dailyWeathers = [];
  List<HourlyWeatherModel> weather24h = [];
  DailyWeatherModel todayWeather = DailyWeatherModel();
  DailyWeatherModel currentWeather = DailyWeatherModel();

  var realLocation = ''.obs;

  var reqLocationUrl = 'https://geoapi.qweather.com/v2/city/lookup?location=@location@&key=0deeeacffcb741169196df8446b2260e&lang=@lang@';
  var futureWeatherUrl = 'https://watchapp.wiodo.tech/api/v3/weather/weather/info';
  var todayWeatherUrl = 'https://watchapp.wiodo.tech/api/v3/weather/weather/nowDetail';
  var hour24WeatherUrl = 'https://watchapp.wiodo.tech/api/v3/weather/weather/dayDetail';

  WeatherState() {
    ///Initialize variables
  }
}
